<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>教师界面</title>
    <link href="bootstrap-4.6.1-dist/css/bootstrap.css"
          rel="stylesheet" type="text/css">
    <script src="jQuery/jquery-3.6.0.min.js"></script>
    <script src="bootstrap-4.6.1-dist/js/bootstrap.min.js"></script>
    <style>
        .dropdown{
            margin-bottom: -20px;
        }
        .dropdown:hover{
            margin: 0px;
        }
        .show{
            /*display: block;*/
            overflow: hidden;
            visibility: hidden;
            max-height: 0px;
            transform: scaleY(0);
        }
        .dropdown:hover .show{
            visibility: visible;
            overflow: hidden;
            transition: transform 0.2s;
            max-height: 999999px;
            transform: scaleY(1);
        }
        .userPortrait {
            width: 40px;
            height: 40px;
            border: 1px solid red;
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto;
            /*margin-top: 100px;*/
        }
        .userPortrait img {
            display: block;
            width: 100%;
            height:100%;
            border: 1px solid green;
        }
        .menu {
            width: 107%;
            float: left;
            padding: 15px;
            border: 1px solid black;
        }
        .main {
            width: 82.3%;
            float: left;
            padding: 15px;
            border: 1px solid black;
        }
        .p1 {
            font-family: "黑体", Times, serif;
            font-size:17px;
        }
    </style>
</head>
<body>

<!--眉头-->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
    <a class="navbar-brand col-1 text-center" href="index.html">爱思教育</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse">
        <ul class="navbar-nav">
            <li class="nav-item active">
                <a class="nav-link" href="#">老师,欢迎您!</a>
            </li>
            <li class="nav-item active" id="release">
                <div class="nav-link " href="teacherReleaseHomework.html" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                    发布作业
                </div>
            </li>
            <li class="nav-item active dropdown" id="check">
                <div class="nav-link " href="teacherCheckHomework.html" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                    批改作业
                </div>
            </li>
            <li class="nav-item active dropdown" id="check1">
                <div class="nav-link " href="teacherCheckHomework.html" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                    提交成绩
                </div>
            </li>
        </ul>
    </div>
    <div class="userPortrait active dropdown">
        <a href="userInformation.html"><img src="img/defaultPortrait.jpg" alt=""></a>
    </div>
</nav>

<div class="row">
    <ul class="navbar-nav bg-light text-center col-md-2">
        <div class="menu">
            <ul>
                <div class="p1">
                    <p>有当前作业未批改</p>
                    <p>高等数学第九章</p>
                    <p>高等数学第九章</p>
                    <p>高等数学第九章</p>
                </div>
            </ul>
        </div>
    </ul>
    <div class="main">
        <h1 href="newsList">学院新闻</h1>
        <div class="p1">
        <p>祝贺！青岛理工大学赵小甫同学当选中国工程院院士
        </p>
        </div>
    </div>
</div>
<!--页脚-->
<div class="footer bg-primary fixed-bottom text-center">
    <p class="text-white">版权所有© Copyright 1999-2021 爱思软件股份有限公司　　中国·青岛黄岛区嘉陵江路777号 西区公寓2号   版本V-0.0.1</p>
</div>
</body>
<script>
    jQuery(function () {
        let loc = location.href;
        let n1 = loc.length;
        let n2 = loc.indexOf("=");
        let id = decodeURI(loc.substr(n2+1, n1-n2));

        jQuery("#release").click(function () {
            location.href="teacherReleaseHomework.html?"+"id=4";
        });
        jQuery("#check").click(function () {
            location.href="teacherCheckHomework.html?"+"id=4";
        })
        jQuery("#check1").click(function () {
            location.href="teacherReleaseGrade.html?"+"id="+encodeURI(id);
        })
    })
</script>
</html>
